import request from '@/axios';
import {baseUrl} from '@/config/env';

export const list = (roleId, data) => {
    return request({
            url: baseUrl + '/start/sysRoleUser/page/' + roleId,
            method: 'get',
            params: data
        }
    )
}
export const saveRoleUser = (data) => {
    return request({
            url: baseUrl + '/start/sysRoleUser/saveRoleUser',
            method: 'post',
            data: data
        }
    )
}
export const deleteRoleUserId = (model) => {
    return request({
            url: baseUrl + '/start/sysRoleUser/deleteRoleUserId',
            method: 'post',
            data: model
        }
    )
}

const roleUserApi = {
    list,
    saveRoleUser,
    deleteRoleUserId
}
export default roleUserApi
